package cn.zn.flowTemplate.entity;

import cn.hutool.json.JSONArray;
import cn.zn.base.bean.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @author zn-admin
 * @since 2021-05-31
 */
@TableName("SYS_FLOW_TEMPLATE")
public class SysFlowTemplate extends BaseEntity<SysFlowTemplate> {

    /**
     * 流程编号
     */
    @TableField("CODE")
    private String code;

    /**
     * 流程名
     */
    @TableField("NAME")
    private String name;

    /**
     * 对应的表
     */
    @TableField("MAIN_TABLE")
    private String mainTable;

    /**
     * 流程
     */
    @TableField("FLOW_JSON")
    private String flowJson;

    @TableField("CORP_ID")
    private String corpId;

    /**
     * 产业
     */
    @TableField("CORP")
    private String corp;

    /**
     * 状态
     */
    @TableField("STATUS")
    private String status;

    @TableField(exist = false)
    private JSONArray flowNodes;

    @TableField(exist = false)
    private List<String> corpIds;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMainTable() {
        return mainTable;
    }

    public void setMainTable(String mainTable) {
        this.mainTable = mainTable;
    }

    public String getFlowJson() {
        return flowJson;
    }

    public void setFlowJson(String flowJson) {
        this.flowJson = flowJson;
    }

    public String getCorpId() {
        return corpId;
    }

    public void setCorpId(String corpId) {
        this.corpId = corpId;
    }

    public String getCorp() {
        return corp;
    }

    public void setCorp(String corp) {
        this.corp = corp;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public JSONArray getFlowNodes() {
        return flowNodes;
    }

    public void setFlowNodes(JSONArray flowNodes) {
        this.flowNodes = flowNodes;
    }

    public List<String> getCorpIds() {
        return corpIds;
    }

    public void setCorpIds(List<String> corpIds) {
        this.corpIds = corpIds;
    }

    @Override
    public String toString() {
        return "SysFlowTemplate{" +
                "code=" + code +
                ", name=" + name +
                ", mainTable=" + mainTable +
                ", flowJson=" + flowJson +
                ", corp=" + corp +
                "}";
    }
}
